home *** CD-ROM | disk | FTP | other *** search
/ Clickx 47 / Clickx 47.iso / assets / software / sswitchxp152.exe / source / SpeedswitchXP / Cpudata.h < prev    next >
Encoding:
C/C++ Source or Header  |  2006-06-15  |  3.3 KB  |  159 lines

  1. /*
  2.    SpeedswitchXP V1.5
  3.    - Windows XP CPU Frequency Control for Notebooks -
  4.  
  5.    Copyright(c) 2002-2006 Christian Diefer
  6.  
  7.    This program is free software; you can redistribute it and/or modify
  8.    it under the terms of the GNU General Public License version 2 as 
  9.    published by the Free Software Foundation.
  10.    
  11.    This program is distributed in the hope that it will be useful,
  12.    but WITHOUT ANY WARRANTY; without even the implied warranty of
  13.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14.    GNU General Public License for more details.
  15.    
  16.    You should have received a copy of the GNU General Public License
  17.    along with this program; if not, write to the Free Software
  18.    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  19. */
  20.  
  21. #pragma once
  22. #include "afxwin.h"
  23. #include "afxcmn.h"
  24.  
  25. #ifndef CCPUDATA_H
  26. #define CCPUDATA_H
  27.  
  28. // CCPUData dialog
  29.  
  30. class CCPUData : public CDialog
  31. {
  32.     DECLARE_DYNAMIC(CCPUData)
  33.  
  34. public:
  35.     CCPUData(CWnd* pParent = NULL);   // standard constructor
  36.     virtual ~CCPUData();
  37.   void setVars();
  38.  
  39. // Dialog Data
  40.     enum { IDD = IDD_CPUDATA };
  41.  
  42. protected:
  43.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  44.   virtual BOOL OnInitDialog();
  45.     DECLARE_MESSAGE_MAP()
  46.  
  47. private:
  48.   void init();
  49.   void getCPUFeatures();
  50.   void getCPUType();
  51.   void identifyIntel();
  52.   void identifyAMD();
  53.   void identifyCyrix();
  54.   void Message( LPCTSTR lpszMessage );
  55.   void readCPUIDLevel( int level, int level2, ULONG* target );
  56.   void readCacheInfo();
  57.   void printCacheInfo( int value );
  58.  
  59.   BOOL supportsCPUID;
  60.   WORD cpuType;
  61.   TCHAR cpuStr[264];
  62.   DWORD exlevel;
  63.   int maxIDVal;
  64.   TCHAR vendorID[16];
  65.   int brandID;
  66.   int family;
  67.   DWORD features;
  68.   DWORD exfeatures;
  69.   DWORD exfeatures2;
  70.   int vendor;
  71.   int familyid;
  72.   int modelid;
  73.   int steppingid;
  74.   int typid;
  75.   TCHAR* brandStr;
  76.   TCHAR* cacheSize;
  77.   TCHAR* structureSize;
  78.   TCHAR* coreType;
  79.   CFont mf;
  80.   LOGFONT lf;
  81.   BOOL f_fpu;
  82.   BOOL f_vme;
  83.   BOOL f_de;
  84.   BOOL f_pse;
  85.   BOOL f_tsc;
  86.   BOOL f_msr;
  87.   BOOL f_pae;
  88.   BOOL f_mce;
  89.   BOOL f_c8x;
  90.   BOOL f_apic;
  91.   BOOL f_sep;
  92.   BOOL f_mtrr;
  93.   BOOL f_pge;
  94.   BOOL f_mca;
  95.   BOOL f_cmov;
  96.   BOOL f_pse36;
  97.   BOOL f_psn;
  98.   BOOL f_mmx;
  99.   BOOL f_pat;
  100.   BOOL f_fxsr;
  101.   BOOL f_fcmov;
  102.   BOOL f_fsc;
  103.   BOOL f_mmxext;
  104.   BOOL f_cxmmx;
  105.   BOOL f_3dnow;
  106.   BOOL f_3dnowext;
  107.   BOOL f_sse;
  108.   BOOL f_sse2;
  109.   BOOL f_ss;
  110.   BOOL f_htt;
  111.   BOOL f_tm1;
  112.   BOOL f_acpi;
  113.   BOOL f_ia64;
  114.   BOOL f_pbe;
  115.   BOOL f_sse3;
  116.   BOOL f_mon;
  117.   BOOL f_cpl;
  118.   BOOL f_vmx;
  119.   BOOL f_est;
  120.   BOOL f_tm2;
  121.   BOOL f_l1id;
  122.   BOOL f_c16b; 
  123.  
  124.   CString m_szSupportsCPUID;
  125.   CString m_szVendor;
  126.   CString m_szFeatures;
  127.   int m_iMaxIDVal;
  128.   CString m_szManufacturer;
  129.   int m_iFamily;
  130.   int m_iModel;
  131.   int m_iStepping;
  132.   int m_iFType;
  133.   CString m_szMaxExLevel;
  134.   CString m_szExCPUName;
  135.   CString m_szExFeatures;
  136.   int m_iBrandID;
  137.   CString m_szBrandStr;
  138.   CString m_szExFeatures2;
  139.   TCHAR flagText[65536];
  140.   CString m_szFlags;
  141.   CEdit m_eFeatures;
  142.   CString m_szCacheInfo;
  143.   CString m_szCoreType;
  144.   CString m_szStructureSize;
  145.   CListCtrl m_cList;
  146.   CString cacheStr[32];
  147.   int cacheStrNo;
  148.   CString flag[64];
  149.   int flagNo;
  150.  
  151. };
  152.  
  153. typedef struct cacheid {
  154.   int id;
  155.   TCHAR* text;
  156. } CACHEID;
  157.  
  158. #endif
  159.